﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeliveryDetail_Print.aspx.cs" Inherits="Sbook.AdminIstrator.DeliveryDetail_Print" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Delivery Detail Print</title>

<style type="text/css">
 h2{
    font-size:18px;
    color:#256c89;
    font-weight:bold;
    padding:0px 0 15px 0;
    margin:0px;
    clear:both;
    
 }
a{
    color:#256c89;
        text-align: right;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <div style="float:right; height: 19px;"><asp:LinkButton ID="ltbExport" 
             runat="server" Font-Strikeout="False" Font-Underline="True" ForeColor="#6699FF" 
             onclick="ltbExport_Click">Export Excel</asp:LinkButton></div>
    <h2>DELIVERY NOTE </h2>
      <br /><br />
    <table cellspacing="0" cellpadding="0" style="margin-left:15px;">
      <col width="67" />
      <col width="81" />
      <col width="236" />
      <col width="48" span="2" />
      <col width="98" />
      <col width="82" />
      <col width="46" />
      <col width="81" />
      <col width="73" />
      <tr>
        <td width="65">Customer</td>
        <td width="152"></td>
        <td width="149"></td>
        <td width="43"></td>
        <td width="75"></td>
        <td width="86">Information</td>
        <td width="70"></td>
        <td width="70"></td>
        <td width="45"></td>
        <td width="44"></td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td>No</td>
        <td>121039216</td>
        <td></td>
        <td></td>
        <td></td>
        <td>PO Code</td>
        <td>2041602582</td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td>Name</td>
        <td>
            <asp:Label ID="lblCustomerName" runat="server" Text=""></asp:Label></td>
        <td></td>
        <td></td>
        <td></td>
        <td>Shipping Point</td>
        <td colspan="3"> 
            <asp:Label ID="lblShippingPoint" runat="server" Text=""></asp:Label></td>
        <td></td>
      </tr>
      <tr>
        <td>Address </td>
        <td colspan="2">
            <asp:Label ID="lblAddress" runat="server" Text=""></asp:Label></td>
        <td></td>
        <td></td>
        <td>Delivery Time</td>
        <td colspan="3"> 
            <asp:Label ID="lblDeliveryTime" runat="server" Text=""></asp:Label></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td>Class</td>
        <td>
            <asp:Label ID="lblClass" runat="server" Text=""></asp:Label></td>
        <td></td>
        <td></td>
        <td></td>
        <td>Order type</td>
        <td>COD</td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td>University</td>
        <td colspan="2">
            <asp:Label ID="lblUniversity" runat="server" Text=""></asp:Label></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td>Phone No</td>
        <td colspan="2">
            <asp:Label ID="lblPhone" runat="server" Text=""></asp:Label></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td>Email</td>
        <td colspan="2"><asp:Label ID="lblEmail" runat="server" Text=""></asp:Label>
            </td>
        <td colspan="3">&nbsp;</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>


       
    </table>
    <p>&nbsp;</p>
        <asp:Repeater ID="rpDeliveryDetail" runat="server">
            <HeaderTemplate>
                <table border="1px" bordercolor="Gray" cellpadding="0" cellspacing="0" style=" width: 900px; border-collapse:collapse;">
	                <tr style="background-color:#5998C6; height:20px;" class="white_text">
                        <td style="font-family:Tahoma; font-size:10pt; color:White; font-weight:bold" align="center">STT</td>
		                <td style="font-family:Tahoma; font-size:10pt; color:White; font-weight:bold" align="center">Material</td>
		                <td style="font-family:Tahoma; font-size:10pt; color:White; font-weight:bold" align="center">Description</td>
		                <td style="font-family:Tahoma; font-size:10pt; color:White; font-weight:bold" align="center">QTY</td>
		                <td style="font-family:Tahoma; font-size:10pt; color:White; font-weight:bold" align="center">UOM</td>
		                <td style="font-family:Tahoma; font-size:10pt; color:White; font-weight:bold" align="center">Location</td>
		                <td style="font-family:Tahoma; font-size:10pt; color:White; font-weight:bold" align="center">Price</td>
		                <td style="font-family:Tahoma; font-size:10pt; color:White; font-weight:bold" align="center">Unit</td>
		                <td style="font-family:Tahoma; font-size:10pt; color:White; font-weight:bold" align="center">Total</td>
		                <td  style="font-family:Tahoma; font-size:10pt; color:White; font-weight:bold" align="center">Remark</td>
		                
	                </tr>
                    
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center" style="padding-left:2px"><%# Container.ItemIndex + 1 %></td>
                    <td align="left" style="padding-left:2px"><%#Eval("PCode") %></td>
                    <td align="left" style="padding-right:2px"><%#Eval("PName") %></td>
                    <td align="center" style="padding-left:2px"><asp:Label ID="lblQty" runat="server" Text='<%#Eval("Qty")%>'></asp:Label></td>
                    <td align="left" style="padding-right:2px">
                        <asp:Label ID="lblUom" runat="server" Text=""></asp:Label></td>
                    <td align="left" style="padding-left:2px"><%#Eval("Location") %></td>
                    <td align="left" style="padding-left:2px"><asp:Label ID="lblPrice" runat="server" Text=' <%#Eval("Price") %>'></asp:Label></td>
                    <td align="center" style="padding-right:2px">VND</td>
                    <td align="left" style="padding-left:2px"><asp:Label ID="lblTotalPrice" runat="server" ></asp:Label> </td>
                    <td align="left"  style="padding-right:2px"><%#Eval("Remark") %></td>
                </tr>

            </ItemTemplate>
            <FooterTemplate>
                <tr>
                        <td colspan="3" style="text-align:right" ></td>
                        <td colspan="1" style="text-align:center">
                            <asp:Label ID="lblSumQty" runat="server" ForeColor="" Text=""></asp:Label></td>
                        <td colspan="4" style="text-align:right"></td>
                        <td colspan="2" style="text-align:left" >
                            <asp:Label ID="lblSumPrice"  runat="server" Text=""></asp:Label></td>
                        <td></td>
                    </tr>

                   
	  
                </table>

            </FooterTemplate>
        </asp:Repeater>
        
                <table width="100%">
                    <tr>

	                     <td width="67" colspan= "3" style="color:Blue">Packed by:</td>
	                     
	                     <td width="98" colspan="3" style="color:Blue">Delivered by:</td>
	                     <td width="82"></td>
	                     <td width="46"></td>
	                     <td width="81"></td>
	                     <td width="73"></td>   
	                </tr>
                </table>
    </div>
    </form>
</body>
</html>
